package java06;
import java.util.*;
public class LinkedHashMapTest01 {
    public static void main(String[] args){
        Map map1 = new HashMap();
        map1.put("2","Rose");
        map1.put("1","Jack");
        map1.put("3","Luck");
        System.out.println(map1);
        map1.forEach((key,value) -> System.out.println(key + ":" +value));
        System.out.println("==================================");
        Map map2 = new LinkedHashMap();
        map2.put("2","Rose");
        map2.put("1","Jack");
        map2.put("3","Luck");
        map2.forEach((key,value) -> System.out.println(key + ":" +value));
    }
}